using System.Collections.Generic;
using DataEntities.Base;
using System;
namespace DataEntities
{
    public class Dogovor : BusinesObjectBase
    {
        private District _district;
        private Sector _sector;
        private string _street;
        private string _home;
        private string _entrance;
        private int _abonentPay;
        private DateTime _dogovorCreateDate;
        private IList<People> _peopleList;
        private bool _isAbonentPayAutoChanged;
        private bool _exceptFormCitySystem;
        private IList<HistoryAbonentPay> _historyAbonentPayList;
        private IList<HistoryCommonReceiptsData> _historyCommonReceiptsDataList;
        private IList<DogovorExtraInfo> _dogovorExtraInfoList;

        public virtual District District { get { return _district; } set { _district = value; } }
        public virtual Sector Sector { get { return _sector; } set { _sector = value; } }
        public virtual string Street { get { return _street; } set { _street = value; } }
        public virtual string Home { get { return _home; } set { _home = value; } }
        public virtual string Entrance { get { return _entrance; } set { _entrance = value; } }
        public virtual int AbonentPay { get { return _abonentPay; } set { _abonentPay = value; } }
        public virtual DateTime DogovorCreateDate { get { return _dogovorCreateDate; } set { _dogovorCreateDate = new DateTime(value.Year, value.Month, value.Day); } }
        public virtual bool IsAbonentPayAutoChanged { get { return _isAbonentPayAutoChanged; } set { _isAbonentPayAutoChanged = value; } }
        public virtual bool ExceptFromCitySystem { get { return _exceptFormCitySystem; } set { _exceptFormCitySystem = value; } }
        public virtual IList<People> PeopleList { get { return _peopleList; } set{_peopleList=value;}}
        public virtual IList<HistoryAbonentPay> HistoryAbonentPayList{get { return _historyAbonentPayList; }set { _historyAbonentPayList=value; }}
        public virtual IList<HistoryCommonReceiptsData> HistoryCommonReceiptsDataList{get { return _historyCommonReceiptsDataList; }set { _historyCommonReceiptsDataList = value; }}
        public virtual IList<DogovorExtraInfo> DogovorExtraInfoList { get { return _dogovorExtraInfoList; } set { _dogovorExtraInfoList = value; } }

        protected Dogovor():base(0)
        {
        }

        public Dogovor(int id)
            : base(id)
        {

        }
    }
}